import VueRouter from 'vue-router'

import home from './commpenter/home.vue'
import huiyuan from './commpenter/huiyuan.vue'
import gouwuche from './commpenter/gouwuche.vue'
import sousuo from './commpenter/sousuo.vue'
// 3. 创建路由对象
var router = new VueRouter({
  routes: [
    {path:'/home', component:home},
    {path:'/home', component:huiyuan},
    {path:'/home', component:gouwuche},
    {path:'/home', component:sousuo},
    {path:'/', component:home}
  ],
  linkActiveClass:'mui-active'
})

// 把路由对象暴露出去
export default router